import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import { useUserStore } from '@/stores/user'
export function createApp() {
  const app = createSSRApp(App)
  app.use(createPinia())

  const userStore = useUserStore()
  userStore.loadlocal()
  return {
    app
  }
}
